﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_Link_website : System.Web.UI.UserControl
{
    BUS_Advertise data = new BUS_Advertise();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            rptQuangCao.DataSource = data.Advertise_GetByTop(0, "Position = 2 and [Status] = 1 and DateEnd >= GETDATE() and DateStar <= GETDATE()", "[Order]");
            rptQuangCao.DataBind();
        }
    }
}